import { http, get } from "@/utils/http";
import type { pageObj } from '@/types/home';

/**
 * 首页-广告区域-小程序
 * @param data object{
 *   @param distributionSite integer  广告区域展示位置 1 为首页（默认值）2 为商品分类页
 * } 
 * @returns 
 */
export const getHomeBanner = <T>(data: any) => get<T>("/home/banner", data)


/**
 * 首页-前台分类
 * @returns 
 */
export const getHomeClassfy = <T>() => get<T>("/home/category/mutli")

/**
 * 首页-热门推荐
 * @returns 
 */
export const getHomeMutli = <T>() => get<T>("/home/hot/mutli")

/**
 * 首页-擦你喜欢
 * @returns 
 */
export const getHomeGuessLike = <T>(data: pageObj) => get<T>("/home/goods/guessLike", data)
